<template>
  <div class="defend">
    <div class="title-wrap">
      <div class="line"></div>
      <div class="title">欢乐家平台保障</div>
      <div class="line"></div>
    </div>
    <div class="bz-box" v-for="i in items" :key="i">
      <img src="http://huanlejiam.xhtol.com/static/img/zhiliang.64317ff.png" alt>
      <div class="bz-header">资金保障</div>
      <div class="bz-text">平台与装修公司及银行共建第三方托管账户系统，先装后付。业主掌握资金主动权，装修无后顾之忧。</div>
    </div>
  </div>
</template>


<script>
export default {
  props: ["items"]
};
</script>


<style lang="scss">
.defend {
  // margin-top: 12px;
  background: #fff;
  padding: 0 12px 8px;
  .title-wrap {
    display: flex;
    align-items: center;
    color: #ee4433;
    padding: 0 12px 0;
    height: 30px;
    .title {
      font-size: 12px;
      flex: 1;
      text-align: center;
    }
    .line {
      width: 120px;
      height: 1px;
      background: #e6e6e6;
    }
  }
  .bz-box {
    position: relative;
    padding-bottom: 4px;
    margin-top: 12px;
    font-size: 0;
    > img {
      width: 100%;
      height: 112px;
      margin-bottom: 8px;
    }
    .bz-header {
      font-size: 16px;
      color: #333333;
      line-height: 1;
      margin-bottom: 8px;
    }
    .bz-text {
      font-size: 12px;
      color: #7f7f7f;
      line-height: 16px;
    }
    &.bz-box:after {
      content: "";
      position: absolute;
      background: #e6e6e6;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 1px;
      transform: scaleY(0.5);
    }
  }
}
</style>
